import axios from "../index.js";
// 灾情勘察
// 勘察任务各专业数量统计
export const zqkcCount = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/count",
    method: "get",
    data: data
  });
};
// 灾情勘察 首页柱状图
export const echartsBar = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/countDevice",
    method: "get",
    data: data
  });
};

// // 灾情勘察首页tab列表
// export const listIndexPage = (data) => {
//   return axios.request({
//     url: "/emergency/emergencySurvey/listIndexPage",
//     method: "get",
//     data: data
//   });
// };
// 灾情勘察列表
export const zqkcFeedbackList = (data) => {
  return axios.request({
    url: "/emergency/emergencySurvey/listPage",
    method: "post",
    data: data
  });
};
// 灾情勘察列表 -- 反馈列表
export const fankuiListPage = (data) => {
  return axios.request({
    url: "/docking/emergencySurveySupplement/listPage",
    method: "post",
    data: data
  });
};
// 灾情勘察保存
export const saveAdd = (data) => {
  return axios.request({
    url: "/emergency/emergencySurvey/save",
    method: "post",
    data: data
  });
};
// 灾情勘察 提交
export const submitAdd = (data) => {
  return axios.request({
    url: "/emergency/emergencySurvey/submit",
    method: "post",
    data: data
  });
};

// 灾情勘察保存或者提交
// export const zqkcFeedbackSave = (data, ulrs) => {
//   return axios.request({
//     url: "/emergency/emergencySurvey/" + ulrs,
//     method: "post",
//     data: data
//   })
// }
// 灾情勘察 编辑
export const zqkcFeedbackUpdate = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/updById",
    method: "post",
    data: data
  });
};
// 详情
export const zqkcFeedbackDetail = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/getById",
    method: "get",
    data: data
  });
};
// 灾情勘察 删除
export const zqkcFeedbackSelete = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/deleteById",
    method: "get",
    data: data
  });
};
// 灾情勘察 审核
export const zqkcFeedbackCheck = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/approve",
    method: "post",
    data: data
  });
};
// 勘察记录 详情
export const zqkcFeedbackGetRecordById = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/getRecordById",
    method: "get",
    data: data
  });
};
// 勘察进度
export const zqkcFeedbackAction = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/action",
    method: "get",
    data: data
  });
};
// 灾情勘察详情左侧时间轴
export const getFlowListAction = (data, ulrs) => {
  return axios.request({
    url: "/emergency/warningFlow/getFlowList",
    method: "get",
    data: data
  });
};

// 导出
export const zqkcExportData = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/exportData",
    method: "post",
    data: data
  });
};
// 灾损统计
export const zqkcStatistics = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/statistics",
    method: "get",
    data: data
  });
};
// 选择队伍列表接口
export const ranksDataList = (data, ulrs) => {
  return axios.request({
    // url: "/emergency/baseResourceTeam/listPage", //
    url: "/resource/baseResourceTeam/listPage",
    method: "post",
    data: data
  });
};
// 基干 详情
export const jgdetails = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/getRecordById",
    method: "get",
    data: data
  });
};
// 队员列表
export const duiyuanDataList = (data, ulrs) => {
  return axios.request({
    // url: "/emergency/baseResourceMember/listPage",
    url: "/resource/baseResourceMember/listPage",
    method: "post",
    data: data
  });
};
// 灾情勘察  接收  选择队伍  保存 / 提交
export const chooseTeamAdd = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/chooseTeam",
    method: "get",
    data: data
  });
};
// 灾情勘察  队伍选择 队伍专业查询
export const listTeamType = (data, ulrs) => {
  return axios.request({
    url: "/resource/baseResourceTeam/listTeamType",
    method: "get",
    data: data
  });
};
// 灾情勘察  获取选中队员
export const getSelectedMember = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/getSelectedMember",
    method: "post",
    data: data
  });
};
// 灾情勘察  首页接口
export const getHome = (data, ulrs) => {
  return axios.request({
    url: "/emergency/emergencySurvey/surveyHomePage",
    method: "get",
    data: data
  });
};
